<!--页面的右边内容-->
<form id="addForm" action="addUser.jsp" name="addForm">
<div class="add">
	<span class="left addl">昵称： </span><input name="nickname" type="text" class="addtext left" />
    <span class="left addll">生日： </span><input name="birthday" type="text" class="addtext left" />
<div class="clear"></div></div>
<div class="add">
    <span class="left addl">签名： </span><input name="sign" type="text" class="addtext left" />
    <span class="left addll">分组： </span><input name="group" type="text" class="addtext left" />
</div>
<div class="add">
    <span class="left addl">手机号： </span><input name="mobile" type="text" class="addtext left" />
    <span class="left addll">办公电话： </span><input name="telphone" type="text" class="addtext left" />
</div>
<div class="add">
  <span class="left addl">性别： </span>  
  <span class="left spanw">
 	 <input name="sex" type="radio" value="-1"  checked="checked"/>保密 <input name="sex" type="radio" value="1"  />男 <input name="sex" type="radio" value="0"/>女
  </span>
  <span class="left addll">地址： </span><input name="address" type="text" class="addtext left" />
</div>

<div class="add">
	<span class="left addl">是否通过验证： </span>
 	 <span class="left spanw">
  		<select name="chk" class="selmid">
	  		<option value="1" selected="selected" >是</option>
	  		<option value="0">否</option>
		</select>
	</span>
   <span class="left addll">邮箱：</span><input name="email" type="text" class="addtext left" />
</div>
<div class="add">
   <span class="left addl">初始化余额：</span><input name="input2" type="text" class="addtext left" />
<span class="left addll">职位：</span><input name="" type="text" class="addtext left" />
</div>
<div class="add">
   <span class="left addl">身份证号：</span><input name="userv" type="text" class="addtext left" />
   <span class="left addll">分组：</span><input name="group1" type="text" class="addtext left" />
</div>
<div class="add">
  <span class="left addl">联系地址：</span><input name="contact_addr" type="text" class="addtext left" />
  <span class="left addll">即时通讯：</span><input name="im" type="text" class="addtext left" />
</div>
<div class="addnl">
  <span style="padding:10px;"><input  type="submit" value="添加" class="ptbtn" /></span>    <span style="padding:10px;"><input type="submit" value="取消" class="ptbtn" /></span>
</div>
</form>
<script>
(function () {
	var form = $("#addForm");
	form.submit(function () {
		$.post(form.attr("action"),form.serialize(),function (responseText,status,result) {
			responseText =parseInt((""+responseText).trim());
			var retuTitle  = responseText==-1?"添加失败":"添加成功";
			loadUrl(retuTitle,"addResult.jsp");
		});
		return false;
	});
})();
</script>